package com.hanhan.chargingpile.user.pojo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户资金明细
 * </p>
 *
 * @author HanHan
 * @since 2023-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AppUserMoneyDetail对象", description="用户资金明细")
public class AppUserMoneyDetail implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long appUserId;

    @ApiModelProperty(value = "发生金额")
    private BigDecimal money;

    @ApiModelProperty(value = "发生前金额")
    private BigDecimal moneyBefore;

    @ApiModelProperty(value = "发生后金额")
    private BigDecimal moneyAfter;

    @ApiModelProperty(value = "备注")
    private String detail;

    private Integer type;

    @ApiModelProperty(value = "来源表id（资金记录）")
    private Long typeId;

    @ApiModelProperty(value = "1:删除，0:未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "1:后台操作，2:正常流水")
    private Integer waterType;

    @ApiModelProperty(value = "0：支出 1：收入")
    private Boolean income;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
